package com.baizhi.controller;


import com.baizhi.entity.School;
import com.baizhi.service.ISchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhangsan
 * @since 2022-06-27
 */
@RestController
@RequestMapping("/school")
public class SchoolController {
    @Autowired
    private ISchoolService ss;
    @GetMapping("/selectOne/{id}")
    public School selectOne(@PathVariable int id){
        return ss.selectDetailSchool(id);
    }
}

